﻿@model IEnumerable<ThienVienDiDaTu.Models.TinTuc> 


@{
    ViewBag.Title = "Tin tức chung";
    ViewBag.TrangChu = "";
    ViewBag.GioiThieu = "";
    ViewBag.Thien = "";
    ViewBag.TinTuc = "active";
    ViewBag.AnPham = "";
}


    
       <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <div class="art-layout-cell art-sidebar1">
                            
                            @{Html.RenderAction("AnPhamMoiNhat", "Home");}
                            @{Html.RenderAction("LienheNhaChua", "Home");}
                        </div>
                        <div class="art-layout-cell art-content">
                            
                            <div class="art-post">
                                <div class="art-post-tl"></div>
                                <div class="art-post-tr"></div>
                                <div class="art-post-bl"></div>
                                <div class="art-post-br"></div>
                                <div class="art-post-tc"></div>
                                <div class="art-post-bc"></div>
                                <div class="art-post-cl"></div>
                                <div class="art-post-cr"></div>
                                <div class="art-post-cc"></div>
                                <div class="art-post-body">
                            <div class="art-post-inner">
                            <div class="art-blockheader">
                                                <div class="l"></div>
                                                <div class="r"></div>
                                                 <div class="t">Tin tức chung</div>
                                            </div>
                                            <div class="art-postcontent">
                                                <!-- article-content -->
                                                <p style="padding-left:500px">
                                                @if (ViewBag.TrangTruoc == 0)
                                                {
                                                     @MvcHtmlString.Create("<< Trang trước")
                                                }
                                                else
                                                {
                                                    <a href = @Url.Action("TinTuc", "Home", new { id = ViewBag.TrangTruoc})> << Trang trước </a>
                                                }
                                                 | 

                                                @if (ViewBag.TrangSau == 0)
                                                {
                                                     @MvcHtmlString.Create("Trang kế tiếp >>")
                                                }
                                                else
                                                {
                                                    <a href = @Url.Action("TinTuc", "Home", new { id = ViewBag.TrangSau})> Trang kế tiếp >> </a>
                                                }                                                
                                                </p>

                                                @foreach (var item in Model)
                                                {
                                                   
                                                    <div style="min-height:115px;">
                                                    <a href=@Url.Action("ChiTietTin", "Home", new { id = item.ID })><img class="art-article" src= @("/Content/data/images/"+item.LinkAnh) alt="an image" style="float: left; border: 0pt none; margin: 0pt 1em 0pt 0pt;"></a>
                                                    <p>
                                                        </p><h2 class="art-postheader"><a href=@Url.Action("ChiTietTin", "Home", new { id = item.ID })>@item.NhanDe</a></h2>
                                                        <p class="datetime"> <span class="red">@item.ThoiGian.ToShortTimeString()</span>  <span class="gray">|  @item.ThoiGian.ToShortDateString()</span></p>
                                                        @item.TomTat<br><br>
                                                    </div>
                                                    
                                                }

                                                <p style="padding-left:500px">
                                                @if (ViewBag.TrangTruoc == 0)
                                                {
                                                     @MvcHtmlString.Create("<< Trang trước")
                                                }
                                                else
                                                {
                                                    <a href = @Url.Action("TinTuc", "Home", new { id = ViewBag.TrangTruoc})> << Trang trước </a>
                                                }
                                                 | 

                                                @if (ViewBag.TrangSau == 0)
                                                {
                                                     @MvcHtmlString.Create("Trang kế tiếp >>")
                                                }
                                                else
                                                {
                                                    <a href = @Url.Action("TinTuc", "Home", new { id = ViewBag.TrangSau})> Trang kế tiếp >> </a>
                                                }                                                
                                                </p>
                                                <!-- /article-content -->
                                            </div>
                                            <div class="cleared"></div>
                            </div>
                            
                            		<div class="cleared"></div>
                                </div>
                            </div>
                        </div>
                    </div>
        </div>